package com.wc.alorithm_luogu.P1427;

import java.util.Scanner;

/**
 * @Author congge
 * @Date 2023/4/21 10:07
 * @description https://www.luogu.com.cn/problem/P1427
 * 小鱼的数字游戏
 */
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        String ss = sc.nextLine();

        String[] split = ss.split(" ");

        System.out.print(split[split.length - 2]);

        for (int i = split.length - 3; i >=0 ; i--) {
            System.out.print(" " + split[i]);
        }
    }
}
